import request from '@/utils/request'

// 查询庄家列表
export function listBanker(query) {
  return request({
    url: '/financial/banker/list',
    method: 'get',
    params: query
  })
}

export function bankers() {
  return request({
    url: '/financial/banker',
    method: 'get'
  })
}

// 查询庄家详细
export function getBanker(id) {
  return request({
    url: '/financial/banker/' + id,
    method: 'get'
  })
}

// 新增庄家
export function addBanker(data) {
  return request({
    url: '/financial/banker',
    method: 'post',
    data: data
  })
}

// 修改庄家
export function updateBanker(data) {
  return request({
    url: '/financial/banker',
    method: 'put',
    data: data
  })
}

// 删除庄家
export function delBanker(id) {
  return request({
    url: '/financial/banker/' + id,
    method: 'delete'
  })
}
